package org.mc.api.user.hystrix;

import org.mc.api.user.UserQueryServiceV1;
import org.mc.common.data.PagedDTO;
import org.mc.common.data.ResultData;
import org.mc.response.user.CustomerDTO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserQueryHystrixV1 implements UserQueryServiceV1 {

    public ResultData<CustomerDTO> queryCustomer(Long userId) {
        return ResultData.fail("无数据");
        //return ResultData.fail("网络异常");
    }

    @Override
    public ResultData<PagedDTO<List<CustomerDTO>>> listAll(int pageIndex, int pageSize) {
        return ResultData.fail("无数据");
    }
}
